﻿using System;
using System.Web.Mvc;

namespace Catalyst.Mvc
{
	public delegate JsonResult ChildAjaxDataMethod(string parentFieldValue, string initialChildData);

	public class ColumnDependency
	{
		public string ParentColumn { get; set; }
		public string ChildColumn { get; set; }
		public ChildAjaxDataMethod ChildAjaxDataMethod { get; set; }
		public string LoadingText { get; set; }
		public string HeadingText { get; set; }
		public string OnChange { get; set; }
		public string DataTextField { get; set; }
		public string DataValueField { get; set; }
		public string NullParentDataValue { get; set; }
	}
}
